package com.spring.anno;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component(value="user")  //相当于<bean id="user"  class=""/>
@Scope//创建单实例或多实例@Scope(value="prototype")
public class User {
 
	public void add(){
		System.out.println("add.....");
	}
}
